/*
* $Id: ChangeQBWnd.h 130 2010-08-06 15:19:16Z volok-aleksej@yandex.ru $
*
* Copyright 2010 by Alexey Volokitin
* All rights reserved
*
*/
#ifndef _CHANGE_QB_WND_H_
#define _CHANGE_QB_WND_H_

#include "DialogWnd.h"

class CChangeQBWnd : public CWnd, public CDialogWnd
{
	CBrush m_pBrush;
protected:
	bool m_bCreate;
	std::tstring m_strNameFamily;
	int m_nIdFamily;
	std::tstring m_strNameQueenBee;
	int m_nIdQueenBee;
protected:
	CEdit m_Name;
	CDateTimeCtrl m_Date;
	CEdit m_Fert;
	CComboBox m_Breed;
	CEdit m_Descr;
	CButton m_Exist;
	CButton m_CurParent;
	CButton m_CurFamily;
public:
	CChangeQBWnd(bool bCreate);
	virtual ~CChangeQBWnd();
protected:
	DECLARE_MESSAGE_MAP();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPaint();
	afx_msg UINT OnGetDlgCode();
public:
	virtual void WindowCreate(CWnd* pParent);
	virtual	void WindowDestroy();
	virtual void SetQueenBeeId(int nId);
	virtual void SetSelectionData(unsigned long data);
	virtual void Save();
};

#endif/*_CHANGE_QB_WND_H_*/